import request from '@/utils/request'

/**
 * 获取省级区域
 * @param {*} query 
 * @returns 
 */
export function getCategory(query) {
    return request({
        url: "/system/region/Info",
        method: 'get',
        params: query
    })
}


/**
 * 获取市区区域
 * @param {*} query 
 * @returns 
 */
export function getMunicipal(query) {
    return request({
        url: "/system/region/getMunicipal",
        method: 'get',
        params: query
    })
}


/**
 * 获取镇
 * @param {*} query 
 * @returns 
 */
export function getTown(query) {
    return request({
        url: "/system/region/getTown",
        method: 'get',
        params: query
    })
}